import request from '@/utils/request'

// 查询行业设置列表
export function listMallShopType(query) {
  return request({
    url: '/mall/mallShopType/list',
    method: 'get',
    params: query
  })
}

// 查询行业设置详细
export function getMallShopType(id) {
  return request({
    url: '/mall/mallShopType/' + id,
    method: 'get'
  })
}

// 新增行业设置
export function addMallShopType(data) {
  return request({
    url: '/mall/mallShopType',
    method: 'post',
    data: data
  })
}

// 修改行业设置
export function updateMallShopType(data) {
  return request({
    url: '/mall/mallShopType',
    method: 'put',
    data: data
  })
}

// 删除行业设置
export function delMallShopType(id) {
  return request({
    url: '/mall/mallShopType/' + id,
    method: 'delete'
  })
}

// 导出行业设置
export function exportMallShopType(query) {
  return request({
    url: '/mall/mallShopType/export',
    method: 'get',
    params: query
  })
}